home *** CD-ROM | disk | FTP | other *** search
/ Macromedia Multimedia Showcase 6.0 / Macromedia Multimedia Showcase v6.0 WIN-MAC (XMSH60CD)(Macromedia, Inc.)(1996).iso / pc / demosoft / freehand / data.5 / App / Usenglsh / lang8.dll / POST / 1086 < prev    next >
Text File  |  1996-10-03  |  4KB  |  173 lines

  1. %. Error handling code - don't do this if printing to hi res imagesetter
  2. printerRes 1000 lt
  3. {
  4. userdict /agd_noerryet true put
  5. errordict
  6. /handleerror
  7. {
  8. $error begin
  9. /prt{dup type /stringtype ne{=string cvs}if show}def
  10. newerror
  11. {
  12. /newerror false store
  13. systemdict begin
  14. grestoreall initgraphics
  15. end
  16. userdict /agd_noerryet get
  17. {
  18. userdict /agd_noerryet false put
  19. 30 90 moveto
  20. 30 122 lineto
  21. 570 122 lineto
  22. 570 90 lineto
  23. closepath
  24. 1 setgray fill
  25. 0 setgray
  26. 30 110 moveto
  27. /Helvetica findfont 14 scalefont setfont
  28. (POSTSCRIPT ERROR: ) prt errorname prt (    ) prt
  29. (OFFENDING COMMAND: ) prt /command load prt
  30. 30 95 moveto
  31. (VMSTATUS max: ) prt vmstatus dup prt
  32. ( avail: ) prt exch sub prt
  33. ( level: ) prt prt
  34. } stopped
  35. pop  
  36. /md where {    
  37. pop
  38. md type /dicttype eq {        
  39. (ioerror) errorname ne{systemdict /showpage get exec}if
  40. } if
  41. }
  42. {    
  43. (ioerror) errorname ne
  44. (interrupt) errorname ne and {systemdict /showpage get exec}if
  45. }
  46. ifelse
  47. } if     
  48. }if
  49. end
  50. }
  51. put
  52. }if
  53. %.
  54. /overlapmark{
  55. -4 xs div 0 rlineto
  56. 4 xs div 2 div -7 ys div 2 div rmoveto
  57. 0 7 ys div rlineto
  58. 4 xs div 0 rlineto
  59. 0 -7 ys div rlineto
  60. -4 xs div 0 rlineto
  61. .2 xs div setlinewidth
  62. 0 setseparationgray stroke
  63. }bdf
  64. /amsub{gsave setlinewidth 4 2 roll rmoveto rlineto stroke grestore}bdf
  65. /am{
  66. newpath
  67. moveto                    
  68. 0 setseparationgray
  69. gsave
  70. currentpoint 5 xs div 0 360 arc         
  71. .3 xs div setlinewidth
  72. stroke
  73. grestore
  74. gsave
  75. currentpoint 3 xs div 0 360 arc         
  76. fill
  77. grestore
  78. 3 xs div 0 5 xs div 0 .3 ys div amsub    
  79. -3 xs div 0 -5 xs div 0 .3 ys div amsub    
  80. 0 3 ys div 0 5 ys div .3 xs div amsub    
  81. 0 -3 ys div 0 -5 ys div .3 xs div amsub    
  82. 1 setseparationgray
  83. -3 xs div 0 6 xs div 0 .3 ys div amsub    
  84. 0 -3 ys div 0 6 ys div .3 xs div amsub    
  85. }bdf
  86. /fhcbox {
  87. xt yt moveto
  88. 13.5 xs div 0 rlineto
  89. 0 13.5 ys div rlineto
  90. -13.5 xs div 0 rlineto
  91. 0 -13.5 ys div rlineto
  92. gsave fill grestore
  93. 0 setseparationgray stroke    
  94. dup length 0 ne {
  95. 0 setseparationgray
  96. dup stringwidth pop neg 13.5 xs div add 2 div xt add yt 5 ys div add moveto show
  97. }
  98. {pop} ifelse
  99. xs div xt add /xt xdf
  100. }bdf
  101. /fhcb {
  102. 0.25 xs div 0.25 ys div add 2 div setlinewidth
  103. 2 copy        
  104. 6.75 ys div sub /yt xdf
  105. 25.5 xs div sub /xt xdf
  106. 0 1 10 { 
  107. 10 div setseparationgray
  108. -13.5 () fhcbox
  109. }for
  110. 6.75 ys div sub /yt xdf
  111. 12 xs div add /xt xdf
  112. /Helvetica findfont 5 ys div scalefont setfont
  113. 1 0 0 0 setcmykcolor 13.5 (C) fhcbox
  114. 0 1 0 0 setcmykcolor 13.5 (M) fhcbox
  115. 0 0 1 0 setcmykcolor 13.5 (Y) fhcbox
  116. 1 1 0 0 setcmykcolor 13.5 (CM) fhcbox
  117. 0 1 1 0 setcmykcolor 13.5 (MY) fhcbox
  118. 1 0 1 0 setcmykcolor 13.5 (CY) fhcbox
  119. 1 1 1 0 setcmykcolor 13.5 (CMY) fhcbox
  120. 0 0 0 1 setcmykcolor 13.5 (K) fhcbox
  121. }def    
  122. /mybleed{bleed 0 eq{wdist 10 sub xs div}{bleed}ifelse}bdf
  123. /cm{mybleed neg 0 rmoveto -9 xs div 0 rlineto
  124. 9 xs div mybleed add mybleed neg rmoveto 0 -9 ys div rlineto
  125. .3 xs div setlinewidth 0 setseparationgray stroke}bdf
  126. /np {720 254 div}bdf
  127. /jpbleed{bleed 0 eq{np 3 mul}{bleed}ifelse}bdf
  128. /cmj{jpbleed neg 0 rmoveto -10 np mul 0 rlineto
  129. 10 np mul 0 rmoveto 0 10 np mul jpbleed add neg rlineto
  130. jpbleed 0 rmoveto 0 10 np mul rlineto
  131. 10 np mul jpbleed add neg 0 rlineto
  132. np 10 div setlinewidth 0 setseparationgray stroke}bdf
  133. /amsubj{gsave setlinewidth 4 2 roll moveto lineto stroke grestore}bdf
  134. /amj{
  135. newpath
  136. gsave
  137. translate
  138. rotate
  139. 0 setseparationgray
  140. gsave
  141. 0 0 5 2 div np mul 0 360 arc         
  142. np 10 div setlinewidth
  143. stroke
  144. grestore
  145. 0 0 10 np mul 0 np 10 div amsubj    
  146. 0 0 -10 np mul 0 np 10 div amsubj    
  147. 0 0 0 6 np mul np 10 div amsubj        
  148. 0 0 0 -4 np mul np 10 div amsubj    
  149. grestore
  150. }bdf
  151. /fhcbj {
  152. 0.25 xs div 0.25 ys div add 2 div setlinewidth
  153. 2 copy        
  154. 6.75 ys div sub /yt xdf
  155. 50.5 xs div sub /xt xdf
  156. 0 1 10 { 
  157. 10 div setseparationgray
  158. -13.5 () fhcbox
  159. }for
  160. 6.75 ys div sub /yt xdf
  161. 37 xs div add /xt xdf
  162. /Helvetica findfont 5 ys div scalefont setfont
  163. 1 0 0 0 setcmykcolor 13.5 (C) fhcbox
  164. 0 1 0 0 setcmykcolor 13.5 (M) fhcbox
  165. 0 0 1 0 setcmykcolor 13.5 (Y) fhcbox
  166. 1 1 0 0 setcmykcolor 13.5 (CM) fhcbox
  167. 0 1 1 0 setcmykcolor 13.5 (MY) fhcbox
  168. 1 0 1 0 setcmykcolor 13.5 (CY) fhcbox
  169. 1 1 1 0 setcmykcolor 13.5 (CMY) fhcbox
  170. 0 0 0 1 setcmykcolor 13.5 (K) fhcbox
  171. }def